<?php
namespace app\validate;

use think\Validate;

class CheckPartner extends Validate
{

    protected $rule =   [
        'name'  => 'require|length:2,30',
        'email'  => 'email',
        'department'  => 'require|length:2,80',
        'head'  => 'require',
    ];

    protected $message  =   [
        'name.require' => '请输入姓名！',
        'name.length' => '姓名在2-30个字符！',
        'email.email' => 'email格式错误！',
        'department.require' => '请输入负责部门！',
        'department.length' => '负责部门在2-80个字符！',
        'head.require' => '请上传头像！',
    ];

}